package com.ziyueyuwen.xiniao.service.baseservice.order;

import com.ziyueyuwen.xiniao.bean.ZyOrderAddress;
import com.ziyueyuwen.xiniao.service.baseservice.BaseService;

import java.util.List;

/**
 * @author wancheng  on 2019/2/26.
 */
public interface ZyOrderAddressService extends BaseService {
    /**
     * 获取创建人的地址
     * @param account
     * @return
     */
    List<ZyOrderAddress> getListByCreateUserAccount(String account);

    /**
     * 主键获取
     * @param id
     * @return
     */
    ZyOrderAddress selectByPreKey(Integer id);

    /**
     * 保存
     * @param insert
     * @return
     */
    Boolean insert(ZyOrderAddress insert);

    /**
     * 保存返回id
     * @param insert
     * @return
     */
    ZyOrderAddress insertUseGeneratedKeys(ZyOrderAddress insert);

    /**
     * 修改
     * @param update
     * @return
     */
    Boolean update(ZyOrderAddress update);

    /**
     * 主键删除
     * @param id
     * @return
     */
    Boolean deleteByPreKey(Integer id);

}
